package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 投诉建议表
 * </p>
 *
 * @author jcd
 * @since 2024-08-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("e_complaint_suggestions")
public class ComplaintSuggestions {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 提交人ID
     */
    private String uid;

    /**
     * 提交内容
     */
    private String content;

    /**
     * 提交图片
     */
    //@JsonSerialize(using = ImgJsonSerializer.class)
    private String imgs;

    /**
     * 类型  0:投诉 1:建议
     */
    private Integer type;

    /**
     * 状态 0:已提交 1:已回复 2:已评分
     */
    private Integer state;

    /**
     * 平台回复
     */
    private String platformReply;

    /**
     * 用户评分
     */
    private Integer score;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long createBy;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long updateBy;

    private Date createTime;

    private Date updateTime;

    @TableLogic(value="0",delval="1")
    private Integer delFlag;


}
